package com.be.beadmin.design.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @Author Jiahao Liu
 * @CreateTime 2023-02-16
 * @Description 标准柜体附件信息
 */
@Entity
@Table(name="T_DM_StandFileInfo")
@Getter
@Setter
public class StandFileInfo extends BaseEntity {

    @Column(name = "FileUrl",columnDefinition = "text COMMENT '文件链接' ")
    private String fileUrl;

    @Column(name = "Version",columnDefinition = "int COMMENT '版本号' ")
    private int version;

    @Column(name = "Status",columnDefinition = "int COMMENT '状态（-1归档；1启用）' ")
    private int status;

    @Column(name = "StandTypeId",columnDefinition = "VARCHAR(50) COMMENT '标准柜体id' ")
    private String standTypeId;

    /**
     * 关联标准柜体编号
     */
    @Column(name = "StandTypeCode",columnDefinition = "VARCHAR(50) COMMENT '标准柜体编码' ")
    private String standTypeCode;

    @Column(name = "StandTypeDesc",columnDefinition = "VARCHAR(50) COMMENT '标准柜体类型' ")
    private String standTypeDesc;

    @Column(name = "StandTypeName",columnDefinition = "VARCHAR(255) COMMENT '标准柜体描述' ")
    private String standTypeName;

    @Column(name = "fileCode",columnDefinition = "VARCHAR(50) COMMENT '文件编码'")
    private String fileCode;

    @Column(name = "fileName",columnDefinition = "VARCHAR(255) COMMENT '文件名称'")
    private String fileName;

    @Column(name = "bucketName",columnDefinition = "VARCHAR(255) COMMENT 'MinIO中的bucketName' ")
    private String bucketName;

    @Column(name = "category",columnDefinition = "VARCHAR(255) COMMENT '文件类别' ")
    private String category;

    @Column(name = "fileSize",columnDefinition = "decimal(10,0) COMMENT '文件大小' ")
    private BigDecimal fileSize;

    @Column(name = "fileExtEndDate",columnDefinition = "VARCHAR(50) COMMENT '文件后缀' ")
    private String fileExtEndDate;

    @Column(name = "memo",columnDefinition = "VARCHAR(255) COMMENT '备注' ")
    private String memo;

    @Column(name = "reserved",columnDefinition = "VARCHAR(50) COMMENT '预留' ")
    private String reserved;

}
